﻿using Design.Common.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Design.Common.Attri
{
    [AttributeUsage(AttributeTargets.Class)]
    public class DesignAttribute : Attribute
    {
        private readonly string _name;

        public string Name
        {
            get { return _name; }
        }

        private readonly DesignType _designType;

        public DesignType DesignType
        {
            get { return _designType; }
        }

        private readonly int _index;

        public int Index
        {
            get { return _index; }
        }

        public DesignAttribute(string name, DesignType designType,int index)
        {
            _name = name;
            _designType = designType;
            _index = index;
        }
    }
}
